﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Xna.Framework;

namespace BlobTowerDefense.Tools
{
    public static class BoundingSphere_Tools
    {
        public static BoundingSphere TransformBoundingSphere(BoundingSphere sphere, Vector3 translation, float scale, float radius = 0.0f)
        {
            BoundingSphere transformedSphere = sphere;

            if (radius > 0.0f)
            {
                transformedSphere.Radius = radius;
            }
            else
            {
                transformedSphere.Radius = sphere.Radius * scale;
            }

            transformedSphere.Center = translation; // = Vector3.Transform(transformedSphere.Center, Matrix.CreateTranslation(translation));

            return transformedSphere;
        }
    }
}
